<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
	<head>
		<meta charset="UTF-8">
		<title>部门管理</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" />
	</head>
	
	<body>
		<div>
			<div id="head">
				<marquee>任何你写的代码，超过半年不去看它，当你再看时，都像是别人写的!!!</marquee>
				<table border="1" width="100%" cellspacing="0">
					<tr>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/1.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/2.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/3.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/4.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/5.jpg"><br />
							<c:if test="${LOGIN_NAME != null}">
								欢迎${LOGIN_NAME}登录&emsp;
								<a href="logout">注销登录</a>
							</c:if>
						</th>
					</tr>
				</table>
			</div>
			<div class="clfloat" id="left">
				<a href="${pageContext.request.contextPath}/emp/index">
					<div>员工管理</div>
				</a>
				<a href="index">
					<div class="active">部门管理</div>
				</a>
				<a href="#">
					<div>扩展功能</div>
				</a>
			</div>
			<div class="clfloat" id="right">
				<div id="nav">
					首页>>>>部门管理
				</div>
				<span>
						<form action="dept/search" method="post">
							<input type="text" name="search" placeholder="按部门编号或部门名称搜索">
							<input type="submit" value="搜索">
						</form>
					</span>
				<table border="1" width="100%" cellspacing="0">
					<tr>
						<th>部门编号</th>
						<th>部门名称</th>
						<th>部门经理</th>
						<th>部门电话</th>
						<th>部门人数</th>
						<th>操作</th>
					</tr>
					<c:forEach items="${DEPT_LIST}" var="list">
						<tr>
							<td>${list.id}</td>
							<td>${list.name}</td>
							<td>${list.manager}</td>
							<td>${list.tel}</td>
							<td>${list.num}</td>
							<td>
								<a href="${pageContext.request.contextPath}/dept_add.jsp">新增</a>&emsp;|&emsp;
								<a href="dept/edit?id=${list.id}">编辑</a>&emsp;|&emsp;
								<a href="dept/delete?id=${list.id}">删除</a>
							</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</div>
	</body>
</html>